//Complex.h
#ifndef COMPLEX_H_
#define COMPLEX_H_
#include <ostream>
using namespace std;
class Complex {
private:
    double real, imag;
public:
    Complex(double re = 0, double im = 0);
    void SetComplex(double re, double im);
    double GetReal();
    double GetImag();
    Complex operator+(Complex &c);
    Complex operator-(Complex &c);
    friend ostream &operator<<(ostream &os, Complex &c);
};
#endif